<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html>
<html>
<head>
  <title>为Action指定data字段的值</title>
</head>
<body>
<form action="tags!result.action" method="post">
  布尔值<s:select name="field1" list="#{'true':'真','false':'假'}" />
  <br>
  单行文本框<s:textfield name="field2" placeholder="只接收整数" value="" />
  <br>
  单选框<s:radio name="field3" list="#{'a':'A','b':'B','c':'C'}" />
  <br>
  复选框<s:checkboxlist name="field4" list="#{'d':'D','e':'E','f':'F'}" />
  <br>
  多行文本框<s:textarea name="field5" placeholder="接收任意值" maxlength="100" />
  <br>
  密码框<s:password name="field6" maxlength="10" placeholder="密码" />
  <s:submit value="提交" />
</form>
</body>
</html>
